// 专栏管理样式文件
.column-management {
  padding: 20px;
  background: #f5f5f5;
  min-height: calc(100vh - 84px);
  transition: all 0.3s ease;

  // 当详情面板打开时，调整布局
  &.dialog-open {
    .search-section,
    .column-list {
      margin-right: 520px;
    }
  }

  // 全屏状态
  &.fullscreen {
    .search-section,
    .column-list {
      margin-right: 0;
    }
  }

  // 搜索区域样式
  .search-section {
    margin-bottom: 20px;
    transition: all 0.3s ease;

    .el-card {
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
      border: none;

      .el-card__body {
        padding: 20px;
      }
    }

    .el-form {
      .el-form-item {
        margin-bottom: 16px;
        margin-right: 20px;

        .el-form-item__label {
          font-weight: 500;
          color: #606266;
        }

        .el-input,
        .el-select {
          width: 200px;
        }

        .el-date-editor {
          width: 200px;
        }
      }

      .el-button {
        margin-right: 10px;
        border-radius: 4px;
        font-weight: 500;

        &.el-button--primary {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          border: none;
          box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);

          &:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
          }
        }

        &.el-button--success {
          background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
          border: none;
          box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);

          &:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(79, 172, 254, 0.6);
          }
        }
      }
    }
  }

  // 专栏列表样式
  .column-list {
    transition: all 0.3s ease;

    .el-card {
      border-radius: 8px;
      box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
      border: none;

      .el-card__header {
        background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
        border-bottom: 1px solid #e4e7ed;
        border-radius: 8px 8px 0 0;

        .el-card__title {
          font-size: 16px;
          font-weight: 600;
          color: #303133;
        }
      }

      .el-card__body {
        padding: 0;
      }
    }

    // 表格样式
    .el-table {
      border-radius: 0 0 8px 8px;
      overflow: hidden;

      .el-table__header {
        background: #fafafa;

        th {
          background: #fafafa;
          color: #606266;
          font-weight: 600;
          border-bottom: 2px solid #e4e7ed;
        }
      }

      .el-table__body {
        tr {
          transition: all 0.3s ease;

          &:hover {
            background: #f8f9ff;
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
          }

          td {
            border-bottom: 1px solid #f0f0f0;
            padding: 16px 0;
          }
        }
      }

      // 专栏封面样式
      .column-cover {
        width: 80px;
        height: 60px;
        border-radius: 6px;
        object-fit: cover;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;

        &:hover {
          transform: scale(1.05);
          box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
        }
      }

      // 操作按钮样式
      .action-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        justify-content: center;
        align-items: center;
        
        .el-button {
          border-radius: 4px;
          font-size: 12px;
          padding: 4px 8px;
          transition: all 0.3s ease;
          margin: 1px;

          &:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
          }

          &.el-button--primary {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border: none;
          }

          &.el-button--success {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            border: none;
          }

          &.el-button--warning {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            border: none;
          }

          &.el-button--danger {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
            border: none;
          }

          &.el-button--info {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            border: none;
            color: #606266;
          }
        }
      }
    }

    // 分页样式
    .pagination-wrapper {
      padding: 20px;
      text-align: center;
      background: #fafafa;
      border-top: 1px solid #e4e7ed;

      .el-pagination {
        .el-pager li {
          border-radius: 4px;
          margin: 0 2px;
          transition: all 0.3s ease;

          &:hover {
            background: #667eea;
            color: white;
          }

          &.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
          }
        }

        .btn-prev,
        .btn-next {
          border-radius: 4px;
          transition: all 0.3s ease;

          &:hover {
            background: #667eea;
            color: white;
          }
        }
      }
    }
  }
}

// 自定义右侧详情面板样式
.right-side-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 500px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 20px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInRight 0.3s ease-out;
  transition: all 0.3s ease;
  
  // 全屏状态样式
  &.fullscreen {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    animation: fadeIn 0.3s ease-out;
  }
  
  .detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(102, 126, 234, 0.15);
    border-bottom: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    
    &::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.15) 100%);
      opacity: 0.8;
      z-index: -1;
    }
    
    .header-title {
      font-size: 18px;
      font-weight: 600;
      color: #2c3e50;
      margin: 0;
      display: flex;
      align-items: center;
      
      .title-icon {
        margin-right: 8px;
        color: #667eea;
        font-size: 20px;
      }
    }
    
    .header-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      
      .el-button {
        border-radius: 6px;
        font-weight: 500;
        transition: all 0.3s ease;
        
        &.el-button--primary {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          border: none;
          box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
          
          &:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
          }
        }
        
        &.el-button--default {
          background: rgba(255, 255, 255, 0.9);
          border: 1px solid rgba(102, 126, 234, 0.3);
          color: #667eea;
          
          &:hover {
            background: rgba(102, 126, 234, 0.1);
            transform: translateY(-1px);
          }
        }
      }
    }
  }
  
  .detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    background: #fafbfc;
    
    // 自定义滚动条
    &::-webkit-scrollbar {
      width: 6px;
    }
    
    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 3px;
    }
    
    &::-webkit-scrollbar-thumb {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      border-radius: 3px;
      
      &:hover {
        background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
      }
    }
    
    .detail-section {
      background: white;
      margin: 16px;
      border-radius: 8px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      overflow: hidden;
      transition: all 0.3s ease;
      
      &:hover {
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
        transform: translateY(-1px);
      }
      
      .section-header {
        background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
        padding: 16px 20px;
        border-bottom: 1px solid #e4e7ed;
        display: flex;
        align-items: center;
        justify-content: space-between;
        
        .section-title {
          font-size: 16px;
          font-weight: 600;
          color: #2c3e50;
          margin: 0;
          display: flex;
          align-items: center;
          
          .title-icon {
            margin-right: 8px;
            color: #667eea;
            font-size: 18px;
          }
        }
        
        .section-badge {
          padding: 4px 12px;
          border-radius: 12px;
          font-size: 12px;
          font-weight: 500;
          
          &.status-1 {
            background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
            color: white;
          }
          
          &.status-2 {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            color: #606266;
          }
          
          &.status-3 {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
            color: white;
          }
          
          &.status-4 {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
            color: white;
          }
          
          &.status-5 {
            background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
            color: white;
          }
          
          &.status-6 {
            background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
            color: #606266;
          }
        }
      }
      
      .section-content {
        padding: 20px;
        
        .info-item {
          display: flex;
          margin-bottom: 16px;
          align-items: flex-start;
          
          &:last-child {
            margin-bottom: 0;
          }
          
          .info-label {
            width: 80px;
            font-weight: 500;
            color: #606266;
            flex-shrink: 0;
            margin-right: 12px;
          }
          
          .info-value {
            flex: 1;
            color: #303133;
            word-break: break-all;
            
            &.cover-image {
              .cover-img {
                width: 120px;
                height: 80px;
                border-radius: 6px;
                object-fit: cover;
                box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
                transition: all 0.3s ease;
                cursor: pointer;
                
                &:hover {
                  transform: scale(1.05);
                  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
                }
              }
            }
            
            &.tags {
              .el-tag {
                margin-right: 8px;
                margin-bottom: 8px;
                border-radius: 12px;
                font-size: 12px;
                
                &:nth-child(1) {
                  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
                  color: white;
                  border: none;
                }
                
                &:nth-child(2) {
                  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
                  color: white;
                  border: none;
                }
                
                &:nth-child(3) {
                  background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
                  color: #606266;
                  border: none;
                }
              }
            }
          }
        }
        
        .stats-grid {
          display: grid;
          grid-template-columns: repeat(2, 1fr);
          gap: 16px;
          
          .stat-item {
            background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
            padding: 16px;
            border-radius: 8px;
            text-align: center;
            transition: all 0.3s ease;
            
            &:hover {
              transform: translateY(-2px);
              box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
            }
            
            .stat-value {
              font-size: 24px;
              font-weight: 700;
              color: #667eea;
              margin-bottom: 4px;
            }
            
            .stat-label {
              font-size: 12px;
              color: #606266;
              font-weight: 500;
            }
          }
        }
      }
    }
  }
}

// 审核对话框样式
.review-dialog {
  .el-dialog {
    border-radius: 12px;
    overflow: hidden;
    
    .el-dialog__header {
      background: linear-gradient(135deg, #f8f9ff 0%, #e8ecff 100%);
      padding: 20px 24px;
      border-bottom: 1px solid #e4e7ed;
      
      .el-dialog__title {
        font-size: 18px;
        font-weight: 600;
        color: #2c3e50;
      }
    }
    
    .el-dialog__body {
      padding: 24px;
      
      .el-form {
        .el-form-item {
          margin-bottom: 20px;
          
          .el-form-item__label {
            font-weight: 500;
            color: #606266;
          }
          
          .el-radio-group {
            .el-radio {
              margin-right: 20px;
              
              .el-radio__label {
                font-weight: 500;
              }
            }
          }
          
          .el-textarea {
            .el-textarea__inner {
              border-radius: 6px;
              border: 1px solid #dcdfe6;
              transition: all 0.3s ease;
              
              &:focus {
                border-color: #667eea;
                box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
              }
            }
          }
        }
      }
    }
    
    .el-dialog__footer {
      padding: 16px 24px;
      background: #fafafa;
      border-top: 1px solid #e4e7ed;
      
      .el-button {
        border-radius: 6px;
        font-weight: 500;
        padding: 10px 20px;
        
        &.el-button--primary {
          background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
          border: none;
          
          &:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
          }
        }
      }
    }
  }
}

// 动画效果
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

// 响应式设计
@media (max-width: 768px) {
  .column-management {
    padding: 10px;
    
    &.dialog-open {
      .search-section,
      .column-list {
        margin-right: 0;
      }
    }
  }
  
  .right-side-detail-panel {
    width: 100vw;
    
    &.fullscreen {
      width: 100vw;
    }
  }
}

// 暗色主题支持
@media (prefers-color-scheme: dark) {
  .column-management {
    background: #1a1a1a;
    
    .el-card {
      background: #2d2d2d;
      border-color: #404040;
      
      .el-card__header {
        background: linear-gradient(135deg, #3a3a3a 0%, #4a4a4a 100%);
        border-bottom-color: #404040;
        
        .el-card__title {
          color: #ffffff;
        }
      }
    }
    
    .el-table {
      background: #2d2d2d;
      color: #ffffff;
      
      .el-table__header {
        background: #3a3a3a;
        
        th {
          background: #3a3a3a;
          color: #ffffff;
          border-bottom-color: #404040;
        }
      }
      
      .el-table__body {
        tr {
          &:hover {
            background: #3a3a3a;
          }
          
          td {
            border-bottom-color: #404040;
          }
        }
      }
    }
  }
}
